<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>类目列表</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <!-- Morris -->
    <link href="css/plugins/morris/morris-0.4.3.min.css" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">

</head>

<body>

<!--<jsp:include page="common/header.jsp"></jsp:include>-->
<div class="container-fluid">
    <div class="row">
<!--        <jsp:include page="common/aside.jsp"></jsp:include>-->
            <div class="text-right"><a class="btn btn-warning" href="type_add.html">添加类目</a></div>

            <br>

            <table class="table table-bordered table-hover">
              <thead>
                <tr>
                    <th>ID</th>
                    <th >名称</th>
                    <th >序号</th>
                    <th>操作</th>
                </tr>
              </thead>

                <tr th:each="type:${typing}">
                    <td>[(${type.t_id})]</td>
                    <td>[(${type.t_name})]</td>
                    <td>[(${type.t_num})]</td>
                 <td>
                    <a th:href="@{/typeDelete(t_id=${type.t_id})}" onclick="typeDelete('${t_id}')">删除</a >
<!--                </td>-->
<!--                    <td>-->
                        <a th:href="@{/type_update(t_id=${type.t_id})}">修改</a >
                    </td>
                </tr>
            </table>

        <script>
            function typeDelete(bike_id){
                var flag=confirm("确定删除？");
                if(flag){
                    location.href="deleteBike?bike_id="+bike_id;
                }
            }

        </script>
                    </tr>


            </table>

    </div>

</div>
</body>

</html>
